import * as types from '../action-types';
import axios from 'axios'
export default {
  getList() {
    return function (dispatch) {
      return axios.get('http://localhost:5000/api/user').then((res) => {
        let list = res.data;
        dispatch({
          type: types.SET_HOME_LIST,
          payload: list
        });
      })
    }
  }
}